#!/usr/bin/env groovy
package org.cicd.utils


def call(params) {
    info(params)
}

def info(value) {
    def colors = ['groovy': "\033[40;31m >>>>>>>>>>>${value}<<<<<<<<<<< \033[0m",
                  'blue'  : "\033[47;34m ${value} \033[0m",
                  'green' : "[1;32m>>>>>>>>>>${value}>>>>>>>>>>[m",
                  'green1': "\033[40;32m >>>>>>>>>>>${value}<<<<<<<<<<< \033[0m"]

    println("INFO:${colors['green']}")
}

def warning(value) {
    def colors = ['groovy': "\033[40;31m >>>>>>>>>>>${value}<<<<<<<<<<< \033[0m",
                  'blue'  : "\033[47;34m ${value} \033[0m",
                  'green' : "[1;32m>>>>>>>>>>${value}>>>>>>>>>>[m",
                  'green1': "\033[40;32m >>>>>>>>>>>${value}<<<<<<<<<<< \033[0m"]

    println("WARNING:${colors['groovy']}")
}